export default [
  {
    label: '账号名',
    prop: 'userName',
    align: 'center'
  },
  {
    label: '所属频率',
    align: 'center',
    // render: (h, row, vm) => {
    //   const data = {...row}
    //   data.channel = data.userChannels
    //     .map(item => item.channelName)
    //     // .join(',')
    //     // console.log(`1${channel}1`)
    //   return (
    //     <span>{data.channel}</span>
    //   )
    // },
    formatter(row, column, cellValue, index) {
      const data = {...row}
      data.channel = data.userChannels
        .map(item => item.channelName)
        .join(',')

        // console.log(`1${channel}1`)
      return `<div>${data.channel}</div>`
    }
  }
]
